﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp3
{
    class Program
    {
        static void Main(string[] args)
        {
            a();
        }
        static void a()
        {
            Console.WriteLine("请选择你要计算的面积 1.圆 2.长方形");
            int a = int.Parse(Console.ReadLine());
            yuan y = new yuan();
            cfx c = new cfx();
            switch (a)
            {
                case 1:
                    Console.WriteLine("请输入圆的半径：");
                    y.a = int.Parse(Console.ReadLine());
                    y.jisuan();
                    break;
                case 2:
                    Console.WriteLine("请输入长和宽：");
                    c.c = int.Parse(Console.ReadLine());
                    c.k = int.Parse(Console.ReadLine());
                    c.jisuan();
                    break;
                default:
                    Console.WriteLine("选择错误！");
                    break;
            }
        }
       
    }
}
